import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'

//提供调用分页查询接口的函数
export const messagePageQueryService = (params)=>{
    return request.get('/admin/message/page',{params: params});
}

//修改信息
export const messageInfoUpdateService = (messageInfoData)=>{
    return request.put('/admin/message',messageInfoData)
}

 //删除信息
export const messageDeleteService = (id)=>{
    return request.delete('/admin/message/' + id)
 }

  //获取信息
export const messageInfoGetService = (id)=>{
    return request.get('/admin/message/' + id)
}

  //新添信息
  export const messageRegisterService = (registerData)=>{
    return request.post('/admin/message/add', registerData)
}